package org.example.chapter5.service.impl;

import org.example.chapter5.dao.MyBatisUserDao;
import org.example.chapter5.pojo.User;
import org.example.chapter5.service.MyBatisUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author CoderXshuai
 * @date 2020/7/27/0027 19:32
 */
@Service
public class MyBatisUserServiceImpl implements MyBatisUserService {

    @Autowired
    private final MyBatisUserDao myBatisUserDao = null;

    @Override
    public User getUser(Long id) {
        return myBatisUserDao.getUser(id);
    }
}
